package com.zsj.mode.responsibilityChain;

/**
 * @Author zsj
 * @Version 1.0
 * @Date 2023/11/9 9:01
 * @Description 学院
 */
public class School extends Handler {
    @Override
    public void processRequest(PurchaseRequest request) {
        double price = request.getPrice();
        if (price > 5000 && price <= 10000) {
            System.out.println("学校处理"+price);
        } else if (header != null) {
            header.processRequest(request);
        }
    }
}
